﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App_Clinique.ClassLibrary.Entities
{
    [Serializable]
    public partial class OrdonnancesMedicaments
    {
        public OrdonnancesMedicaments()
        {

        }

        [Column("Posologie"), StringLength(100), Required]
        public virtual String Posologie { get; set; }

        /****************************************************************************************************
         * Foreign Keys - IDs
         ***************************************************************************************************/
        [Column("OrdonnanceID", Order = 0), Key]
        public virtual Guid OrdonnanceID { get; set; }

        [Column("MedicamentID", Order = 1), Key]
        public virtual Int64 MedicamentID { get; set; }

        /****************************************************************************************************
         * Foreign Keys - Reference Objects
         ***************************************************************************************************/
        public virtual Ordonnance Ordonnance { get; set; }
        public virtual Medicament Medicament { get; set; }

        /****************************************************************************************************
         * Collections
         ***************************************************************************************************/
    }
}
